<div class="layui-fluid">
    <div class="layui-card">
        <div class="layui-form layui-card-header layuiadmin-card-header-auto" lay-filter="LAY-list-form">
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label  layui-label-jy">配送计划单号</label>
                    <div class="layui-input-inline">
                        <input type="text" name="code" placeholder="请输入配送计划单号" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">SKU</label>
                    <div class="layui-input-block">
                        <input type="text" name="sku" placeholder="" autocomplete="off" class="layui-input">
                    </div>
                </div>
                <div class="layui-inline">
                    <button style="display:none" class="down" lay-submit="" lay-filter="LAY-list-down">下载</button>
                    <button type="reset" class="layui-btn layui-btn-primary reset" id="reset">重置</button>
                    <button class="layui-btn layuiadmin-btn-useradmin search" lay-submit lay-filter="LAY-list-search">搜索</button>
                </div>
            </div>
        </div>

        <div class="layui-card-body">
            <table id="LAY-list"  lay-filter="LAY-list"></table>
            <!-- 头部工具栏 -->
            <script type="text/html" id="toolbar">
                <div class="layui-btn-group fl layui-btn-group-jy">
                    <a lay-event="export" href="javascript:;" class="layui-btn layui-btn-primary layui-btn-sm layui-icon layui-icon-download-circle">&nbsp;导出</a>
                </div>
            </script>


        </div>
    </div>
</div>

<script>
    layui.use(['admin', 'table', 'form','toolJ','upload'], function () {
        var $ = layui.$
            , admin = layui.admin
            , view = layui.view
            , table = layui.table
            , toolJ = layui.toolJ
            , form = layui.form;
        form.render(null, 'LAY-list-form');
         table.render({
                elem: '#LAY-list'
               ,url: '/index/Deliveryfollow/getList'
                ,toolbar: '#toolbar'
                ,cellMinWidth:100
                ,defaultToolbar: ['filter']
                ,cols: [[
                        {type:'checkbox'}
                       ,{field: 'code',title: '配送计划单号'}
                       ,{field: 'business_code',title: '业务单号'}
                       ,{field: 'type',title: '类型'}
                        ,{field: 'sku',title: 'SKU'}
                        ,{field: 'sku_name',title: '中文名称'}
                       ,{field: 'quantity', title: '配送数量'}
                       ,{field: 'company_str_out', title: '调出公司'}
                       ,{field: 'shop_str_rec', title: '调入店铺'}
                       ,{field: 'warehouse_str_out', title: '调出仓库'}
                       ,{field: 'warehouse_str_rec', title: '调入店仓'}
                       ,{field: 'warequantity', title: '入库数量'}
                       ,{field: 'waredate', title: '入库时间'}
                        ,{field: 'differ_num', title: '差异数'}
                ]]
                ,page: true
                ,limit: 30
                ,text:{none: '暂无相关数据!' }
        }); 
    });
</script>